﻿using UnityEngine;

public class GUIStyleUtil
{

    public static GUIStyle UniButton()
    {
        return new GUIStyle()
        {
            normal = new GUIStyleState()
            {
                background = Texture2D.grayTexture,
            },

            fixedWidth = 100,
            alignment = TextAnchor.MiddleCenter,
            onFocused = new GUIStyleState() { background = Texture2D.whiteTexture }
        };
    }


    public static GUIStyle UniCube(int size)
    {
        return new GUIStyle()
        {
            normal = new GUIStyleState()
            {
                background = Texture2D.whiteTexture,
            },

            fixedHeight = size,
            fixedWidth = size,
            alignment = TextAnchor.MiddleCenter,
            onFocused = new GUIStyleState() { background = Texture2D.whiteTexture }
        };
    }
}